package models

import (
	"gorm.io/gorm"
)

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(20);comment:用户名"`
	Password string `gorm:"type:varchar(300);comment:密码"`
}
type Article struct {
	gorm.Model
	Title     string `gorm:"type:varchar(30);comment:新闻标题"`
	Comment   string `gorm:"type:varchar(300);comment:新闻内容"`
	LikeCount string `gorm:"type:varchar(20);comment:点赞量"`
}
